package cn.pugle.ormtest.ebean.domain.dto;

import cn.pugle.ormtest.ebean.domain.CustomerModel2;
import io.ebean.annotation.Sql;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.OneToOne;

/**
 * \@Sql表示不对应数据库表
 *
 * @author tzp
 * @date 2017/12/27
 */

@Entity
@Sql
@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class CustomerDetail {
    @OneToOne
    private CustomerModel2 customer;

    private Long orderCount;
}
